package org.dromara.xxmj.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.xxmj.domain.CourseQuestion;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 小巷密卷用户扩展视图对象
 *
 * @author Lion Li
 */
@Data
@ExcelIgnoreUnannotated
public class DefaultQuestionVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 索引
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 问题ID
     */
    private Long questionId;


    /**
     * 学生ID
     */
    private String stuId;

    /**
     * 题目内容
     */
    @Schema(description = "题目内容")
    private String title;

    /**
     * 题目类型（0单选 1多选 2判断）
     */
    @Schema(description = "题目类型")
    private String type;

    /**
     * 选项内容（JSON格式）
     */
    @Schema(description = "选项内容")
    private String options;

    /**
     * 选项列表
     */
    @Schema(description = "选项列表")
    private List<Map<String, String>> optionList;

    /**
     * 正确答案
     */
    @Schema(description = "正确答案")
    private String answer;

    /**
     * 解析
     */
    @Schema(description = "解析")
    private String analysis;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String image;


    /**
     * 保存时间
     */
    private Date saveTime;


}
